import base from "./base";
import table from "./table";
import placeholder from "./placeholder";
import dict from "./dict";
import BasicLayout from "./layout";
const messages: any = {};
const viewModules: any = import.meta.glob("./views/**/*.ts", {
  eager: true,
});
Object.keys(viewModules).forEach((key) => {
  const fileName = key.replace(/(.*\/)*([^.]+).*/gi, "$2");
  messages[fileName] = viewModules[key].default;
});
export default {
  base: base,
  table: table,
  placeholder: placeholder,
  dict: dict,
  layout: BasicLayout,
  ...messages,
};
